import { _decorator, Component, Node, Sprite, SpriteFrame } from 'cc';
import { Block } from './Block';
const { ccclass, property } = _decorator;

@ccclass('CampBlock')
export class CampBlock extends Block {

    @property(SpriteFrame)
    changeSp:SpriteFrame|null=null;

    destorySelf(){
        //console.log("campBlock destory");
        this.getComponent(Sprite).spriteFrame=this.changeSp;
    }
}



